package com.qianfeng.controller;

import com.qianfeng.pojo.Shiyongzhuangtai;
import com.qianfeng.service.SYZTService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@RequestMapping("/syzt")
@CrossOrigin("*")
public class SYZTController {
    @Autowired
    private SYZTService syztService;
    @GetMapping("/selectAll")
    public List<Shiyongzhuangtai> selectAll(){
        List<Shiyongzhuangtai> list = syztService.selectAll();
        return list;
    }
}
